import Vue from 'vue'
import Router from 'vue-router'



const subject=resolve => require(['@/components/index/subject.vue'],resolve);
const index=resolve => require(['@/components/index/index.vue'],resolve);
const movie=resolve => require(['@/components/movie/movie.vue'],resolve);

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'subject',
      component: subject,
      children:[
        {
          path: '',
          name: 'index',
          component: index,
        },        
      	{
	      	path: 'movie',
	      	name: 'movie',
	      	component: movie,
        }
      ]
    },
    
  ]
})
